<template>
  <j-modal
    :title="'供应商 - ' + title"
    :width="width"
    :visible="visible"
    :maskClosable="false"
    :keyboard="false"
    draggable
    switchFullscreen
    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
    @cancel="handleCancel">
    <template slot="footer">
      <!-- <a-button v-if="disableSubmit" key="print" @click="handlePrint" style="margin-right: 48px">打印</a-button> -->
       <a-button v-if="!disableSubmit" @click="handleSubmit" type="primary" style="margin-bottom: 0;">确定</a-button>
      <a-button @click="handleCancel" style="margin-bottom: 0;">{{disableSubmit ? '关闭':'取消'}}</a-button>
      
    </template>
    <supplier-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"/>
  <!--   <div class="drawer-footer">
      <a-button v-if="!disableSubmit" @click="handleOk" type="primary" style="margin-bottom: 0;">确定</a-button>
      <a-button @click="handleCancel" style="margin-bottom: 0;">{{disableSubmit ? '关闭':'取消'}}</a-button>
    </div> -->
  </j-modal>
</template>

<script>
  import supplierForm from './BasSupplierForm'
  // import {DrawerMixin} from '../../common/mixins/DrawerMixin'
import { OrderModalMixin } from '../../common/mixins/OrderModalMixin'
  export default {
    name: 'BasSupplierModal',
    components: {supplierForm},
    mixins: [OrderModalMixin],

    data () {
      return { width:1300}
    },
  }
</script>

<style scoped>
</style>
